RE: VLC x264 GCC profiling
by vintu on Aug 24, 2009 |
vintu
Posts: 2 Joined: May 30, 2008 Last seen: Nov 13, 2013 |
||
Hi All ,
I am vintu Here . I wont mind working on the software domain please let me know how can i help u guys . with regards Vintu |
RE: VLC x264 GCC profiling
by thsteinle on Aug 24, 2009 |
thsteinle
Posts: 2 Joined: Jul 2, 2009 Last seen: Apr 30, 2024 |
||
Hello,
We can have people working on the port of X264 encoder to Openrisc using the openrisc toolchain. At same time, we can profile it thoroughly on Intelx86 based platform on linux as well as on windows(Just to make sure we have consistent profiling results, plus windows based profiling might tell something which gprof might not) I was able to build, and execute the x264 encoder on a linux(Fedora) and a Intelx86 architecture. I encoded a raw yuv sequence to a .264 encoded bit stream(High profile, Level3, resolution:720x480, . I have one question related to makefile. Next i tried to enable profiling, i added the switch -pg in the makefile at below places, When i run the x264 executable on linux, to encode a sequence, gmon.out is generated, but when i use command : gprof x264 gmon.out it says gprof: file `x264' has no symbols and so was not able to get any profile information using gprof. Am i missing something? Can someone tell in detail, how to use gprof to get profile results on linux. What changes to makefile are needed for that? -AD. P.S. I am also trying to build the same source on Windows using MS tools. Hi, Recompiling x264 for or32 seems to be more or less straightforward. There is one internal compiler error in slicetype.c which needs to be fixed and the -pg compiler option does not work. Nevertheless it seems to work with or1ksim. Can you please post a link to your source raw YUV sequence for me to check if the encoder works. Thanks Thomas |
RE: VLC x264 GCC profiling
by ckavalipati on Aug 24, 2009 |
ckavalipati
Posts: 19 Joined: Aug 3, 2009 Last seen: Oct 30, 2012 |
||
Hi All,
I am sorry I could not check forum posts all weekend. I have x264 source built from the top of the git trunk. I have it on both my Windows PC (using cygwin) and on Linux machine. Let me know what I can do to help? Do we have consensus on what version of x264 to use? In the email thread there were questions about this and I did not hear conclusions about it. Is there a place where I can upload YUV sequences that I am using? -Chander. |
RE: VLC x264 GCC profiling
by ckavalipati on Aug 25, 2009 |
ckavalipati
Posts: 19 Joined: Aug 3, 2009 Last seen: Oct 30, 2012 |
||
Hi Gijo,
I was able to get the profile information using gprof. I did configure with --enable-debug and --enable-prof options, and then build the source. Those two configure options were what i had not used earlier. One General query - Do we have any common area on the H.264 Porject space wherein we can upload files for others to download, etc (e.g. Some profiling results, analysis etc..) This kind of arrangement would help going forward. Thanks. -Ajit Can we use subversion repository for this? How about creating profiling directory under top of the trunk for this? Is this a good place for this data? |
RE: VLC x264 GCC profiling
by ckavalipati on Aug 25, 2009 |
ckavalipati
Posts: 19 Joined: Aug 3, 2009 Last seen: Oct 30, 2012 |
||
When i run the x264 executable on linux, to encode a sequence, gmon.out is generated, but when i use command : gprof x264 gmon.out it says gprof: file `x264' has no symbols and so was not able to get any profile information using gprof. Am i missing something? Can someone tell in detail, how to use gprof to get profile results on linux. What changes to makefile are needed for that? Do you know what binutils/gprof version you are using? The same commad works just fine for me. I am using gprof that came from binutils 2.19.1. |
RE: VLC x264 GCC profiling
by marcus.erlandsson on Aug 25, 2009 |
marcus.erlandsson
Posts: 38 Joined: Nov 22, 2007 Last seen: Mar 7, 2013 |
||
Hi Gijo,
I was able to get the profile information using gprof. I did configure with --enable-debug and --enable-prof options, and then build the source. Those two configure options were what i had not used earlier. One General query - Do we have any common area on the H.264 Porject space wherein we can upload files for others to download, etc (e.g. Some profiling results, analysis etc..) This kind of arrangement would help going forward. Thanks. -Ajit Excellent Gijo, as for the upload-questions, we should use the SVN-repository for all files (design files, documents, etc). I can create a directory "x264_profiling" under /trunk/doc/ in the OC-H264-Encoder project. Then you can "checkin" the files and let us know when they are available. /Marcus |
RE: VLC x264 GCC profiling
by ckavalipati on Aug 25, 2009 |
ckavalipati
Posts: 19 Joined: Aug 3, 2009 Last seen: Oct 30, 2012 |
||
I have collected gprof profiling information on few video sequences. I was not sure what presets/options to use collect the information so I just let the tool pick-up default settings for me.
My command line would look like this,
x264 -o .264 .yuv XxY (where X and Y are denote resolution)
I used CIF resolution of 352x288 (does this make sense?)
As some one said earlier (alianov I think), we should pick-up video files and options that impact encoding algorithm to collect profiling information. I am not familiar with the encoding algorithm yet. I am trying to read the source.
If someone has better understanding of the encoding algorithm please suggest how we can set this up.
|
RE: VLC x264 GCC profiling
by ckavalipati on Aug 25, 2009 |
ckavalipati
Posts: 19 Joined: Aug 3, 2009 Last seen: Oct 30, 2012 |
||
I can see some commonality in the basic profile data that I collected.
Marcus, would you like me to check it in? |
RE: VLC x264 GCC profiling
by marcus.erlandsson on Aug 25, 2009 |
marcus.erlandsson
Posts: 38 Joined: Nov 22, 2007 Last seen: Mar 7, 2013 |
||
Hi All,
Please check-in the "YUV sequence" under "/trunk/YUV_clips/", and the "profiling" information under "/trunk/doc/x264_profiling/". Feel free to add directories and to add files to SVN.... /Marcus |
RE: VLC x264 GCC profiling
by gil_savir on Aug 25, 2009 |
gil_savir
Posts: 59 Joined: Dec 7, 2008 Last seen: May 10, 2021 |
||
Does anyone has a version of x264 that can be compiled using Microsoft Visual Studio? It seems still having a lot of things to do for Windows compilation. I'm not familiar with linux debug environment for C, such as GDB, so can anyone help that? Thanks. Brian, I also tried compiling on MS Visual C/C++, since it seems that the source already comes with Visual C project files. Trying to compile gave me too many warnings and error messages so I was too lazy to debug these. Especially when compiling on Linux with the given configure script and the Makefile is so easy and straightforward. If you insist working with Visual C, I bet you can get some help on the x264 forum: http://forum.doom9.org/forumdisplay.php?f=77 I suggest you try working on Linux (I prefer Ubuntu), using IDE such as Eclipse C/C++. You'll see that debugging with Eclipse is not different than with Visual C/C++. |
RE: VLC x264 GCC profiling
by lekernel on Aug 25, 2009 |
lekernel
Posts: 11 Joined: Feb 3, 2008 Last seen: Aug 14, 2019 |
||
The ideal solution would be to port it to the OpenRISC-processor first, and then run the profiling.
So you have chosen OpenRISC? According to its intensive FPGA resource usage and low clock frequency, I'm not really sure this is the best option. You can check Mico32 and AEMB for lighter and faster processors. |
RE: VLC x264 GCC profiling
by marcus.erlandsson on Aug 25, 2009 |
marcus.erlandsson
Posts: 38 Joined: Nov 22, 2007 Last seen: Mar 7, 2013 |
||
The ideal solution would be to port it to the OpenRISC-processor first, and then run the profiling.
So you have chosen OpenRISC? According to its intensive FPGA resource usage and low clock frequency, I'm not really sure this is the best option. You can check Mico32 and AEMB for lighter and faster processors. We have 100% control of the OpenRISC processor, meaning we know that it will continue to be developed and that we can modify it if we need. The toolchain is also in control of OpenCores, which is important. Micro32 is owned by Lattice and it's not using BSD, or LGPL. /Marcus |
RE: VLC x264 GCC profiling
by goldenmean on Aug 25, 2009 |
goldenmean
Posts: 3 Joined: Jun 2, 2009 Last seen: May 29, 2011 |
||
Hello All,
I would be nice if someone gives some basic instructions/pointers about using SVN. I have few questions below, related to accessing SVN repositories of OC H.264 project. 1.) I have installed tortoise client for SVN (Windows explorer extension/plugin).Is it fine or i need to get something else? 2.)How do i download files uploaded by other users. What is the URL for that(if there is anything like that in SVN) Like profile data, yuv sequences. 3.) How do i upload files from my local folders into SVN repository? Thanks. -Ajit. |
RE: VLC x264 GCC profiling
by lekernel on Aug 25, 2009 |
lekernel
Posts: 11 Joined: Feb 3, 2008 Last seen: Aug 14, 2019 |
||
Working solutions are better than perfect solutions...
And yet, the Mico32 license is very permissive (BSD style), and AEMB is LGPL. Both processors have a GCC toolchain, which is GPL licensed so you can fork it if you wish and have total control over the development of the fork (but I don't recommend you do so, because you'd then have to deal with 100k-lines files full of deeply nested macros spanning several includes, autoconf, and other similar GNU abominations) You can similarly fork Mico32 and AEMB, and their source code is quite elegant and understandable. |
RE: VLC x264 GCC profiling
by viryu on Aug 26, 2009 |
viryu
Posts: 1 Joined: Mar 18, 2006 Last seen: Feb 8, 2016 |
||
hi all
I received an e-mail this morning from opencores, and find out the project. I am quite interested in this project. I will introduce myself: I once do someting about H.264 during my master life in university. My graduate design is about the CAVLC of H.264. I learn the algorithm, read the C language downloaded from JM, compile the CAVLC part. And at last I wrote the RTL to realize an Encoder and a Decoder. And I am a new here. It is the first time I take part in an opencore project,and I donot know how to do. Will anyone can help me? Anybody who is interested in H.264 encoding and decoding can contact me though the e-mail: nirvanno@gmail.com |